package com.devshephard.pdf;


import com.spire.pdf.FileFormat;
import com.spire.pdf.PdfDocument;
import org.apache.commons.cli.ParseException;
import technology.tabula.CommandLineApp;

import java.io.*;

class PdfReaderDemo {

    public static void main(String[] args) throws ParseException {
        //创建PdfDocument实例
        PdfDocument pdf = new PdfDocument();

        //加载PDF文档
        pdf.loadFromFile("D:\\zzs.pdf");

        //保存为Excel
        pdf.saveToFile("D:\\zzsss.xlsx", FileFormat.XLSX);


    }


}
